#ifndef TCL_MTK_DTV_TV_H
#define TCL_MTK_DTV_TV_H
#include"tcl_tv.h"

class TCL_MTK_DTV_TV : public TCL_TV
{
    friend class TCL_USB;
    friend class MainWindow;
public:
    TCL_MTK_DTV_TV();
    TCL_MTK_DTV_TV(QString &name,uint ch_val=0,uint freq=0,uint bandwidth=0,
                   short nw_id=0,short on_id=0,short ts_id=0,short prog_id=0,
                   uint sys_rate=0,uint mod=0,uint nw_flag=0):
                   TCL_TV(name),ui4_ch_val(ch_val),
                   ui4_freq(freq),e_bandwidth(bandwidth),
                   ui2_nw_id(nw_id),ui2_on_id(on_id),
                   ui2_ts_id(ts_id),ui2_prog_id(prog_id),
                   ui4_sys_rate(sys_rate),e_mod(mod),ui4_nw_flag(nw_flag){}

    int Read_Data(QDataStream &in);
    int Write_Data(QDataStream &out);
     void set_Data(int order,QVariant );
private:
    char ui_dtv;
    short ui2_nw_id;
    short ui2_on_id;
    short ui2_ts_id;
    short ui2_prog_id;
    uint ui4_ch_val;
    uint ui4_freq;
    uint e_bandwidth;
    uint ui4_sys_rate;
    uint e_mod;
    uint ui4_nw_flag;
};

#endif // TCL_MTK_DTV_TV_H
